/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.varios;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author Mac Leopard
 */
@WebService()
public class NumerosPrimos {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "NumPrimo")
    
    public String NumPrimo(@WebParam(name = "n1")
    int n1, @WebParam(name = "n2")
    int n2) {
       String resp="";
       for(int i=n1;i<=n2;i++){
           if(i%i==0&&i%1==0)
           {
               resp+=i+", ";
           }
                      
       }
        return resp;
    }
    



}
